﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Xilium.CefGlue;

namespace IanWebkitBrowser
{
    class LifeSpanHandler : CefLifeSpanHandler
    {
        private App app;

        public LifeSpanHandler(App app)
        {
            this.app = app;
        }

        protected override void OnAfterCreated(CefBrowser browser)
        {
            base.OnAfterCreated(browser);
            app.Browser = browser;
        }
    }
}
